﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Circle:Shape
    {
        private double radius;

        public override void GetArea()
        {
            Console.WriteLine("请输入圆的半径：");
            radius = double.Parse(Console.ReadLine());
            Console.WriteLine("圆的面积为：{0}",(this.radius * this.radius * 3.14));
        }

        public double Radius
        {
            get { return this.radius; }
            set { this.radius = value; }
        }
    }
}
